<?php if (!defined('THINK_PATH')) exit();?><?php if(($blackList)  ==  ""): ?><p><?php echo L('PUBLIC_HUSER_TIPES');?></p>
<?php else: ?>
<div class="blacklists">
	<ul class="list">
	<?php if(is_array($blackList)): ?><?php $i = 0;?><?php $__LIST__ = $blackList?><?php if( count($__LIST__)==0 ) : echo "" ; ?><?php else: ?><?php foreach($__LIST__ as $key=>$vo): ?><?php ++$i;?><?php $mod = ($i % 2 )?><li>
	<!-- <a href="javascript:void(0)" class="btn-gray right" onclick="core.plugInit('blacklist',this,'list',<?php echo ($vo["fid"]); ?>)"><span>移出黑名单</span></a> -->
	<a href="javascript:void(0)" class="btn-grey-white right" onclick="remove(this,<?php echo ($vo["fid"]); ?>)"><span>移出黑名单</span></a>
	<span class="date"><?php echo (friendlydate($vo["ctime"])); ?></span>
	<?php echo ($vo["userInfo"]["space_link"]); ?>&nbsp;&nbsp;<?php echo ($vo["userInfo"]["email"]); ?>
	</li><?php endforeach; ?><?php endif; ?><?php else: echo "" ;?><?php endif; ?>
	</ul>
</div><?php endif; ?>
<script>
	var remove = function(obj,fid){
		var obj = obj;
		$.post(U('widget/Blacklist/removeUser'),{fid:fid},function(msg){
						if(msg.status == 0){
							ui.error(msg.data);
						}else{
							ui.success('移出成功');
							$(obj).parent().fadeOut('slow');
						}
					},'json');
	};
</script>